home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsdk.lha
/
man
/
cat3
/
ferror.0
< prev
next >
Wrap
Text File
|
1992-08-10
|
2KB
|
67 lines
FERROR(3) UNIX Programmer's Manual FERROR(3)
NNAAMMEE
cclleeaarreerrrr, ffeeooff, ffeerrrroorr, ffiilleennoo - check and reset stream status
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
_v_o_i_d
cclleeaarreerrrr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeeooff(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeerrrroorr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffiilleennoo(_F_I_L_E _*_s_t_r_e_a_m)
DDEESSCCRRIIPPTTIIOONN
The function cclleeaarreerrrr() clears the end¡of¡file and error indicators for
the stream pointed to by _s_t_r_e_a_m.
The function ffeeooff() tests the end¡of¡file indicator for the stream point¡
ed to by _s_t_r_e_a_m, returning non¡zero if it is set. The end¡of¡file indi¡
cator can only be cleared by the function cclleeaarreerrrr().
The function ffeerrrroorr() tests the error indicator for the stream pointed to
by _s_t_r_e_a_m, returning non¡zero if it is set. The error indicator can only
be reset by the cclleeaarreerrrr() function.
The function ffiilleennoo() examines the argument _s_t_r_e_a_m and returns its inte¡
ger desciptor.
EERRRROORRSS
These functions should not fail and do not set the external variable
_e_r_r_n_o.
SSEEEE AALLSSOO
open(2), stdio(3)
SSTTAANNDDAARRDDSS
The functions cclleeaarreerrrr(), ffeeooff(), and ffeerrrroorr() conform to ANSI
C3.159¡1989 (``ANSI C'').
BSD Experimental June 29, 1991 1